package com.yjt.admin.system.form.org;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 组织表
 * </p>
 *
 * @author zzp
 * @since 2021-10-09
 */
@Data
public class DeptOrgForm implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "部门id,新增不用传")
    private String orgId;

    @ApiModelProperty(value = "部门名称", example = "弘瑞康")
    @NotBlank(message = "部门名称不能为空")
    private String orgName;

    @ApiModelProperty(value = "上级领导id集合")
    private List<String> superLeaderIdList;

    @ApiModelProperty(value = "部门领导id集合")
    private List<String> orgLeaderIdList;

    @ApiModelProperty(value = "上级部门id")
    @NotBlank(message = "上级部门不能为空")
    private String superOrgId;

    @ApiModelProperty(value = "上级所有组织id")
    private String superAllOrgId;

    @ApiModelProperty(value = "排序", example = "1")
    private Integer sort;

}
